package com.niepan.modules.zhinenganjianback.test;

import org.bouncycastle.jce.provider.BouncyCastleProvider;

import java.security.Security;

public class test {
    public static void main(String[] args) {
        Security.addProvider(new BouncyCastleProvider());
        String data = "NRjO++yny5CoFae93fP6UW+BSCzdCfN70wfL8k4JSDsuKKqn6GjmMpdYtHZlfkFj8qUBAQFvMvs0im/gcbXFqOMjeYMOb2SMZHcmT31GuujJIbLB8AU4VageMMqLn74y";
        String result = "";
        // 1 将base64 转换为 string
        AESUtil.base64Decode(data);
        // 将string 解密

        try {
            result = AESUtil.aesDecrypt(data, "Ds3o00ra43ym9X8s");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        System.out.println("result is :"  + result);

    }
}
